package vault

// region BundleTable

type BundleTable struct {
	*BundleBase
	QueryParam *QueryParam   `json:"queryParam"`
	TableMap   *TableMap     `json:"-"`
	Headers    []TableHeader `json:"-"`
	Rows       []TableRow    `json:"data"`
}

func NewBundleTable(query *QueryParam, table *TableMap) *BundleTable {
	return &BundleTable{
		BundleBase: &BundleBase{
			Code: 0,
			Msg:  "",
			Desc: "",
		},
		QueryParam: query,
		TableMap:   table,
		Headers:    table.Headers,
		Rows:       table.Rows,
	}
}

func (adapter BundleTable) BundleInit() {}

// endregion
